<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog x-modal-dialog" style="width: 650px; margin-top: 100px;">

  <div class="modal-content">

    <div class="modal-header x-breadcrumb no-bottom-border clearfix">

      <h2><i class="glyphicon glyphicon-fire" title="过滤查询"></i>&nbsp;&nbsp;<span>代言人列表&nbsp;-&nbsp;添加代言人</span></h2>

      <button type="button" class="close" data-dismiss="modal">&times;</button>

    </div>
    
    <form class="form-horizontal" method="POST" action="${ctx.host}/distributors/${distributor.id}/edit-info" data-validate="true">
      
      <input type="hidden" name="_method" value="PATCH" />
      <input type="hidden" name="distributorId" value="${distributor.id}" />
      
      <div class="modal-body">
        
        <div class="form-group x-form-group discount-type">
          <label class="col-xs-4 control-label">回扣百分比</label>
          <div class="col-xs-6 pull-left">
            <div class="input-group">
              <input type="text" class="form-control" name="kickback" value="${distributor.kickback}" data-validate="required|percentage_validate" placeholder="请输入回扣百分比，不可小数" />
              <div class="input-group-addon">%</div>
            </div>
          </div>
        </div>
        
        <div class="form-group x-form-group payment-type">
          <label class="col-xs-4 control-label">打款账号</label>
          <div class="col-xs-6 pull-left">
            <input type="text" class="form-control" name="account" value="${distributor.account}" placeholder="请输入支付宝账号，可不填" />
          </div>
        </div>
        
        <div class="form-group x-form-group payment-type">
          <label class="col-xs-4 control-label">真实姓名</label>
          <div class="col-xs-6 pull-left">
            <input type="text" class="form-control" name="realName" value="${distributor.realName}" placeholder="请输入支付宝账号真实姓名，可不填" />
          </div>
        </div>
        
        <div class="form-group x-form-group payment-type">
          <label class="col-xs-4 control-label">微信号</label>
          <div class="col-xs-6 pull-left">
            <input type="text" class="form-control" name="webchatId" value="${distributor.webchatId}" placeholder="请输入微信号，可不填" />
          </div>
        </div>
        
      </div>

      <div class="modal-footer">
        <button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>
  

</div>